package com.vieewer.btdemo.view.draw;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import com.vieewer.btdemo.R;
import com.vieewer.btdemo.bean.DrawTextBean;
import com.vieewer.btdemo.bean.OCRResultBean;
import com.vieewer.btdemo.widget.CustomView;

import java.util.ArrayList;


public class DrawActivity extends Activity {

    private ArrayList<DrawTextBean> data;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_draw);
        CustomView custom_view = findViewById(R.id.custom_view);
        data = (ArrayList<DrawTextBean>) getIntent().getSerializableExtra("data");

        String filePath = getIntent().getStringExtra("filePath");
        if (filePath != null) {
            custom_view.setImageView(filePath);
        }


        if (data != null) {
            custom_view.setTranslateTextView(data);
            Log.i("yjj", "ocr result >>>>" + data.toString());
        }




    }


    @Override
    protected void onRestart() {
        super.onRestart();
    }

    @Override
    protected void onStart() {
        super.onStart();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onStop() {
        super.onStop();
    }


    @Override
    protected void onDestroy() {
        super.onDestroy();
    }


}
